<template>
  <div class="main-box">
    <div class="carousel-box">
      <Carousel
        autoplay-speed="5000"
        dots="none"
        v-model="carouselValue"
        loop
      >
        <CarouselItem v-for="item in carouselList" :key="item.src">
          <div class="demo-carousel">
            <div class="overlay-1"></div>
            <div class="overlay-2"></div>
            <img :src="item.src" alt="" />
          </div>
        </CarouselItem>
      </Carousel>
    </div>
    <div class="score-box">
      <div class="score-box-title">电影评分</div>
      <div class="score-box-item">
        <div v-for="item in scoreList" :key="item.title">
          <img :src="item.img" alt="">
          <div class="score-box-item-title">{{ item.title }}</div>
          <div class="score-box-item-value">{{ item.value }}</div>
        </div>
      </div>
    </div>
    <div class="countDate-box">
      <div class="countDate-box-title">每月上映</div>
      <div id="countDate_echart"></div>
    </div>
  </div>
</template>
  
  <script>
import test from "./test";
export default {
  ...test,
};
</script>
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
.main-box {
  position: relative;
  width: 100%;
  height: 4000px;
  background-image: url("../../assets/movies/background.png");
  background-repeat: no-repeat;
  background-size: cover;
}
.main-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(200px);
}
.carousel-box {
  position: relative;
  margin: auto;
  width: 70%;
  height: 700px;
}
.demo-carousel {
  width: 100%;
  height: 700px;
  overflow: hidden; /* 防止图片溢出容器 */
  position: relative;
}
.demo-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overlay-1 {
  position: absolute;
  width: 100%;
  height: 200px;
  top: 0px;
  opacity: 1;
  background: linear-gradient(
    0deg,
    rgba(25, 24, 37, 0) 0%,
    rgba(25, 24, 37, 0.3) 33.85%,
    rgba(25, 24, 37, 0.9) 100%
  );
}
.overlay-2 {
  position: absolute;
  width: 100%;
  height: 300px;
  bottom: 0px;
  opacity: 1;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(25, 24, 37, 0.7) 55.85%,
    rgba(25, 24, 37, 0) 100%
  );
}
.score-box {
  position: relative;
  margin: auto;
  width: 70%;
  height: 792px;
}
.score-box .score-box-title{
  text-align: left;
  color: #ffffff;
  font-size: 50px;
  margin: 30px 0;
}
.score-box .score-box-item{
  text-align: center;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
}
.score-box .score-box-item>div {
  width: 24%;
  height: 700px;
  border: 4px solid orchid;
  border-radius: 12px;
}
.score-box .score-box-item>div>img {
  border-radius: 8px;
  width: 94%;
  height: 77%;
  margin-top: 3%;
}
.score-box .score-box-item-title{
  color: #bbbbbb;
  font-weight: bold;
  font-size: 33px;
}
.score-box .score-box-item-value{
  color: coral;
  font-family: fantasy;
  /* font-weight: bold; */
  font-size: 50px;
}
.countDate-box {
  position: relative;
  margin: auto;
  width: 70%;
  height: 600px;
}
.countDate-box .countDate-box-title{
  text-align: left;
  color: #ffffff;
  font-size: 50px;
  margin: 30px 0;
}
.countDate-box #countDate_echart{
  width: 100%;
  height: 500px;
}
</style>
  